package com.avic.modules.realtime.config;

import com.avic.modules.realtime.nettysocket.NettyWebSocket;
import com.google.common.eventbus.EventBus;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ayetony.miao
 * @date 2022/8/18 10:40
 **/
@Configuration
public class BusConfig {

    @Bean
    public EventBus eventBus(){
        EventBus eventBus = new EventBus("eventBus");
        eventBus.register(new NettyWebSocket());
        return eventBus;
    }

}
